﻿using System;
using System.Collections;
using System.Collections.ObjectModel;
using System.Collections.Specialized;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using CDA = System.ComponentModel.DataAnnotations;
using System.Data;
using System.Data.SqlClient;
using System.Data.Linq;
using System.Data.Linq.Mapping;
using System.Linq;
using System.Linq.Dynamic;
using System.Linq.Expressions;
using System.Reflection;
using System.Text.RegularExpressions;
using System.Xml;
using System.Xml.Linq;
using System.Web;
using System.Web.DynamicData;
using SWD = System.Web.DynamicData;
using System.Web.UI.WebControls;
using Dimok;

namespace Data.LINQ {
	#region LinqDataSources

	////////////////////////////////////////////////////////////////////////////////////////////////////
	/// <summary>	Appl menu history data source. </summary>
	///
	/// <remarks>	Dimon, 12/21/2010. </remarks>
	////////////////////////////////////////////////////////////////////////////////////////////////////

	public class Appl_MenuHistoryDataSource : LinqDataSource {

		////////////////////////////////////////////////////////////////////////////////////////////////////
		/// <summary>	Raises the initialise event. </summary>
		///
		/// <remarks>	Dimon, 12/21/2010. </remarks>
		///
		/// <param name="e">	Event information to send to registered event handlers. </param>
		////////////////////////////////////////////////////////////////////////////////////////////////////

		protected override void OnInit(EventArgs e) {
			base.OnInit(e);
			Selecting += new EventHandler<LinqDataSourceSelectEventArgs>(Appl_MenuHistoryDataSource_Selecting);
		}

		////////////////////////////////////////////////////////////////////////////////////////////////////
		/// <summary>	Event handler. Called by Appl_MenuHistoryDataSource for selecting events. </summary>
		///
		/// <remarks>	Dimon, 12/21/2010. </remarks>
		///
		/// <param name="sender">	Source of the event. </param>
		/// <param name="e">			Linq data source select event information. </param>
		////////////////////////////////////////////////////////////////////////////////////////////////////

		void Appl_MenuHistoryDataSource_Selecting(object sender, LinqDataSourceSelectEventArgs e) {
			e.Result = new MotoBank().Appl_MenuHistory((int)e.SelectParameters["LoanID"]);
		}
	}
	#endregion
}